
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class MallExchange extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ListView(
        padding: EdgeInsets.only(top: 60,left: 15,right: 15),
        children: [
          Align(
            child: Image.asset(
              'static/web/success.png',
              width: 111,
              fit: BoxFit.fitWidth,
            ),
          ),
          SizedBox(
            height: 10,
          ),
          Align(
            child: Text('您已兑换成功',
                style: TextStyle(fontSize: 15, color: Color(0XFF0F172B))),
          ),
          Container(
            margin: EdgeInsets.only(top: 25),
            padding: EdgeInsets.symmetric(horizontal: 15,vertical: 15),
              decoration: BoxDecoration(
                  color: Color(0XFFF8F9FD),
                  borderRadius: BorderRadius.circular(8)),
              child: Column(
                children: [
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,

                    children: [
                      Text('商品名称',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF999999))),
                      Text('超现实元宇宙数字艺术展厅',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF0F172B))),
                    ],
                  ),
                  SizedBox(
                    height: 20,
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,

                    children: [
                      Text('商品类型',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF999999))),
                      Text('实物商品',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF0F172B))),
                    ],
                  ),
                  Divider(color: Color(0XFFDDDDDD),height: 40,),
                 
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Text('订单编号',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF999999))),
                      Text('2',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF0F172B))),
                    ],
                  ),
                  SizedBox(
                    height: 20,
                  ),
                   Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Text('兑换时间',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF999999))),
                      Text('2',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF0F172B))),
                    ],
                  ),
                  SizedBox(
                    height: 20,
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Text('兑换数量 ',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF999999))),
                      Text('2',
                          style: TextStyle(
                              fontSize: 14, color: Color(0XFF0F172B))),
                    ],
                  ),
                ],
              )),
              Container(
            margin: EdgeInsets.only(top:50),

                height: 50,
                decoration: BoxDecoration(
                  color: Color(0XFF0F172B),
                  borderRadius: BorderRadius.circular(50)
                ),
                width: 340,
                alignment: Alignment.center,
                child: 
Text('确认',style: TextStyle(fontSize: 18,color: Color(0XFFFFFFFF))),
              )
        ],
      ),
    );
  }
}
